home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / ada / c01lab1.zip / SIMLATRS / SOWS.PTF < prev    next >
Text File  |  1992-11-11  |  9KB  |  217 lines

  1. .SECT File Folder Database Manager
  2. .PP
  3. A File Folder Database Manager maintains a database of the folders
  4. in a filing cabinet.  It allows the user to organize the folders by
  5. a taxonomy, specify their locations, and print reports on them.
  6. .PP
  7. For each folder (record), the following information is maintained:
  8. .LIST
  9. .LE
  10. Top-level taxonomy entry (40 characters maximum)
  11. .LE
  12. 2nd-level taxonomy entry (40 characters maximum)
  13. .LE
  14. 3rd-level taxonomy entry (40 characters maximum)
  15. .LE
  16. Description of folder contents (3 lines of 60 characters/line maximum)
  17. .LE
  18. ID of drawer containing folder (5 characters maximum)
  19. .LE
  20. ID of folder in drawer (5 characters maximum)
  21. .ELIST
  22. .PP
  23. The database manager should perform the conventional database functions
  24. (create, import text files, export text files, add records, delete
  25. records, sort records, etc.) and generate the following reports:
  26. .LIST
  27. .LE
  28. A listing of the database ordered by the three taxonomy entries
  29. .LE
  30. A listing of the unused drawer/folder IDs
  31. .LE
  32. A listing showing the last folder ID for each drawer ID
  33. .ELIST
  34. .sp 2
  35. .SECT Cruise Control System
  36. .PP
  37. A cruise control system maintains a car's speed, even over varying
  38. terrain.  The basic idea is that the driver engages the cruise control
  39. system, the car reaches a desired speed, and the driver tells the cruise
  40. control system to start controlling the car's speed.
  41. .PP
  42. If the cruise control system is controlling the car and the driver
  43. touches the brake pedal, the cruise control system stops controlling the
  44. car's speed but remains engaged and remembers the last speed set by
  45. the driver.  After touching the brake pedal, if the driver presses the
  46. resume switch, the cruise control system resumes controlling the car at
  47. the last desired speed.
  48. .PP
  49. If the cruise control system is controlling the car and the driver
  50. depresses the accelerator pedal to speed up, the cruise control system
  51. stops controlling the car's speed until the driver releases the
  52. accelerator pedal.  After the driver releases the accelerator pedal,
  53. the cruise control system resumes controlling the car at the last
  54. desired speed.
  55. .PP
  56. This problem is the design a cruise control system and a screen-oriented
  57. user interface from the driver's perspective.  Through this interface
  58. the driver (at the keyboard) should be able to do the following:
  59. .sp
  60. .li +8
  61. .nf
  62.  1. Start the engine
  63.  2. Depress the accelerator pedal
  64.  3. Depress the brake pedal
  65.  4. See the speed of the car (a speedometer reading is displayed)
  66.  5. See if the cruise control system is engaged and if it is
  67.     currently controlling the car
  68.  6. Engage the cruise control system
  69.  7. Set the current speed as the desired speed,
  70.     allowing the cruise control system to control the car's speed
  71.  8. Press the resume switch, allowing the cruise control system
  72.     to resume control of the car's speed
  73.  9. Disengage the cruise control system
  74. 10. Stop the engine
  75. .fi
  76. .li -8
  77. .PP
  78. For the purpose of this problem, an interface to the automobile hardware is
  79. provided by an automobile interface package.
  80. If this exercise were to be extended into
  81. a real application, the only difference would be a change to the package
  82. body of this automobilie interface from a simulation to an actual
  83. hardware-level
  84. interface to the sensors and actuators in the automobile itself.
  85. The following is the package
  86. specification of the automobile interface (tentative, subject to change):
  87. .sp
  88. .li +8
  89. .nf
  90. .include auto.spc
  91. .fi
  92. .li -8
  93. .sp 2
  94. .SECT Spacecraft Environment Monitoring System
  95. .PP
  96. A spacecraft contains a number of sensors which
  97. continuously sample the internal ambient temperature, pressure, and radiation
  98. levels within the spacecraft.  The problem is to design and implement
  99. a monitor system in software which
  100. reads the values of these sensors, displays them (using character graphics and
  101. numeric values) on a CRT screen, and checks to ensure that the sensor values
  102. always fall within desired constraints.  If any one sensor or combination
  103. of sensors return values which fall outside their constraints, an alarm
  104. indication will be displayed on the screen along with a beeping sound
  105. to attract attention.
  106. .PP
  107. For the purpose of this problem, an interface to the sensor hardware is
  108. provided by a sensor interface package.
  109. If this exercise were to be extended into
  110. a real application, the only difference would be a change to the package
  111. body of this sensor interface from a simulation to an actual hardware-level
  112. interface to the sensors themselves.  The following is the package
  113. specification of the sensor interface (tentative, subject to change):
  114. .sp
  115. .li +8
  116. .nf
  117. .include ssi.spc
  118. .fi
  119. .li -8
  120. .sp 2
  121. .SECT Document Concordance Generator
  122. .PP
  123. A
  124. .ul
  125. concordance
  126. is an alphabetical index that shows the places in a document where
  127. each word may be found.  For example, a concordance of this paragraph
  128. might appear as:
  129. .sp
  130. .li +8
  131. .nf
  132. .ul
  133. Word              Line Number
  134. a                 1, 2, 3
  135. alphabetical      1
  136. an                1
  137. appear            3
  138.  ...
  139. word              2
  140. .fi
  141. .li -8
  142. .PP
  143. Concordances are typically used as an aid in the study of massive works,
  144. such as the Bible or the collected works of Shakespeare.  In a slightly
  145. different form, a system that creates a concordance might be used to provide
  146. the functionality of a cross-reference generator for programs or to create
  147. an index.
  148. .PP
  149. This problem is to develop a program that, given the name of a file
  150. containing a document and the name of an output file, produces a
  151. concordance of the document in the output file.  The concordance output
  152. file is to contain a heading at the top of each page, a footer at the
  153. bottom of each page with page numbers, and a title page showing the name
  154. of the input file.  Articles (the words "a", "an", and "the") are to be
  155. omitted from the concordance.  Connectives (the words "and", "or", "then",
  156. and "else") are also to be omitted.  Finally, other common words (including
  157. "of", "but", "is", "are", "not", "to", "that", "from", "it", "its", "itself",
  158. "in", "out", "very", "most", "it's", and "also") are to be omitted.
  159. Design the concordance software so this list of omitted words can
  160. be easily changed and the program recompiled.
  161. .sp 2
  162. .SECT "Host at Sea" Buoy System
  163. .PP
  164. The "Host at Sea" buoy system is a group of free-floating buoys that
  165. provide navigation and weather data to air and ship traffic at sea.
  166. The buoys collect data on air and water temperature, wind speed, and
  167. their location through a variety of sensors.  Each buoy is equipped with
  168. a radio transmitter (to broadcast weather information, location information,
  169. and an SOS signal) and a radio receiver (to receive requests from passing
  170. vessels).  Each buoy is equipped with a yellow light, which can be
  171. activated by a passing vessel during sea-search operations.  A sailor
  172. reaching the buoy can flip a switch on the side of the buoy which causes
  173. the buoy to send out an SOS broadcast and flash
  174. a red SOS light.
  175. .PP
  176. Software for each buoy must do the following:
  177. .LIST
  178. .LE
  179. Obtain air and water temperature and wind speed from the buoy's sensors
  180. and broadcast this information.
  181. .LE
  182. Obtain location information from the buoy's sensors and broadcast this
  183. information.
  184. .LE
  185. Activate or deactivate the yellow light based on requests from
  186. passing vessels.
  187. .LE
  188. Continuously broadcast an SOS signal and the red light
  189. after a sailor engages the emergency switch.  This continues until
  190. someone disengages the emergency switch.  All other activity is taking
  191. place while the SOS broadcast is taking place.
  192. .ELIST
  193. .PP
  194. You are to write a monitor system for all buoys in the world for this
  195. problem.  This monitor system will display information about all buoys
  196. that are sending out SOS signals or flashing Yellow.  Additionally,
  197. if the temperature of the air or the water exceeds 200 degrees
  198. Fahrenheit, this is an indication of a nuclear explosion, and such
  199. events must appear on the monitor with a warning alarm (beeping sound).
  200. Finally, if the wind speed at a buoy exceeds 50 MPH, a hurricane is
  201. assumed to be present, and this condition sho